<template>
  <div class="cs-tag" :class="currentType"><slot></slot></div>
</template>

<script>
export default {
  props: {
    type: {
      type: String,
      default: 'warning'
    }
  },
  computed: {
    currentType() {
      if (this.type === 'primary') {
        return 'primary'
      } else {
        return 'warning'
      }
    }
  }
}
</script>

<style scoped>
/* 车牌号样式 */
.cs-tag {
  width: 85px;
  height: 28px;
  line-height: 28px;
  font-size: 14px;
  color: #fff;
}

.primary {
  background-color: #006eff;
}

.warning {
  background-color: #f9af00;
}
</style>
